package com.qinghong.blog.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author qinghong
 * @since 2021-12-06
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("tb_comment")
@ApiModel(value="Comment对象", description="")
public class Comment implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "评论用户Id")
    private Integer user_id;

    @ApiModelProperty(value = "评论文章id")
    private Integer article_id;

    @ApiModelProperty(value = "评论内容")
    private String comment_content;

    @ApiModelProperty(value = "评论时间")
    private LocalDateTime create_time;

    @ApiModelProperty(value = "回复用户id")
    private Integer reply_id;

    @ApiModelProperty(value = "父评论id")
    private Integer parent_id;

    @ApiModelProperty(value = "是否删除  0否 1是")
    private Integer is_delete;


}
